package com.it.travel.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.it.travel.dto.admin.AdminRoleDTO;
import com.it.travel.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    List<AdminRoleDTO> queryRole(@Param("index") Integer index,
                                 @Param("size") Integer size
    );

    List<Integer> queryPermissionIByRoleId(@Param("roleid") Integer roleid);
}
